import axios from "~/axios";

export function getRuleList(page){  
  return axios.get(`/admin/rule/${page}`)
}

export function createRule(data){  
  return axios.post(`/admin/rule`,data)
}

export function updateRule(page,data){  
  return axios.post(`/admin/rule/${page}`,data)
}

export function deleteRule(id){  
  return axios.post(`/admin/rule/${id}/delete`)
}

export function updateRuleStatus(id,status){  
  return axios.post(`/admin/rule/${id}/update_status`,{status})
}



